'''
Created on Mar 30, 2010

@author: jhlee
'''
from Camera import *
from SceneNode import *

class SceneManager:
    def __init__(self):
        self.camera = Camera()
        self.rootNode = SceneNode()
        
        
    def addSceneNode(self, node):
        self.rootNode.addChild(node)
        
    def setCamera(self, camera):
        self.camera = camera
        
    def renderScene(self):
        self.camera.setupForRendering()
        self.rootNode.render()
    
    